home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…rary 8 (Internal Edition) / Apple R&P Lib Internal v8.0.iso / 3-Presentations / Service⁄Support⁄Training / Self-Paced Training / Macintosh SE⁄30 Training / Macintosh SE⁄30 / Macintosh SE_30 / stack_-1.xml < prev   
Encoding:
Extensible Markup Language  |  1988-12-18  |  8.0 KB  |  23 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>239</cardCount>
  7.     <cardID>9977</cardID>
  8.     <listID>129588</listID>
  9.     <cantModify><true /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>--‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  17. --  Stack created for Apple Computer, Inc.
  18. --  Copyright ¬© 1988 by Apple Computer, Inc.
  19. --  HyperCard construction ‚Äî Chuck Walker.
  20. --  PopUpMenu XFCN by Andrew Gilmartin, Brown University
  21. --————————————————————————————————————————————————————————————————————
  22. --  Begin Stack Script  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  23. --————————————————————————————————————————————————————————————————————
  24. on openStack
  25. if the version < 2.0 then
  26. answer "This stack requires HyperCard version 2.0" with¬¨
  27. "Continue" or "Home"
  28. if it is "Home" then go home
  29. end if
  30. put item 2 of the screenRect into screenTop
  31. if top of card window < screenTop + 20 then hide menuBar
  32. hide tool window
  33. hide pattern window
  34. hide msg
  35. resetMap
  36. end openStack
  37. --————————————————————————————————————————————————————————————————————
  38. on closeStack
  39. put "" into clicktime
  40. put "" into checkeditem
  41. put "" into mapcleaning
  42. pass closeStack
  43.  
  44. end closeStack
  45. --————————————————————————————————————————————————————————————————————
  46. --  intercept keyboard handlers:  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  47. --————————————————————————————————————————————————————————————————————
  48. --  same as clicking the arrow buttons  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  49. on arrowKey whatKey
  50. if whatKey = "Left" then click at 442,328
  51. if whatKey = "Right" then click at 469,328
  52. end arrowKey
  53.  
  54. --  same as clicking the return button  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  55. on returnKey
  56. click at 498,328
  57. end returnKey
  58.  
  59. --  intercept enter key  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  60. on enterKey
  61. end enterKey
  62.  
  63. --————————————————————————————————————————————————————————————————————
  64. --  offer help to the lost  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  65.  
  66. on mouseUp
  67. global clickTime
  68. if the ticks - clickTime < 50 then exit mouseUp
  69.  
  70. answer "Click one of the Arrow buttons." with "Help" or "OK"
  71. if it is "Help" then
  72. push card
  73. visual dissolve
  74. go card "howToUse"
  75. else exit mouseUp
  76.  
  77. end mouseUp
  78. --————————————————————————————————————————————————————————————————————
  79. -- disable certain menu options which are not appropriate  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  80.  
  81. on domenu whatMenu                       --// Added by Medior, Inc. 3/13/91
  82. global RPStackName
  83. if whatMenu is in "Message Find... Print Report... Last Prev Next" then
  84. exit to HyperCard
  85. else if (","& whatMenu &",") is in ",Home,Quit HyperCard," and RPStackName is not empty then
  86. set cursor to 4
  87. put RPStackName into sN
  88. repeat until offset(":",sN) = 0
  89. delete char 1 to offset(":",sN) of sN
  90. end repeat
  91. delete last char of sN
  92. answer "This will return to "&sN&"." with "Cancel" or "OK"
  93. if it is "Cancel" then exit domenu
  94. set cursor to 4
  95. lock screen
  96. go RPStackName
  97. unlock screen with dissolve fast
  98. exit domenu
  99. else pass doMenu
  100. end domenu
  101. --————————————————————————————————————————————————————————————————————
  102. -- popUp table of contents menu  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  103.  
  104. on mainMenu
  105. global clickTime, checkedItem
  106.  
  107. get the loc of card window
  108. put item 1 of it into LeftWind
  109. put item 2 of it into TopWind
  110. get the rect of target
  111. put item 1 of it into leftSide
  112. put item 4 of it into bottomSide
  113. put (TopWind + bottomSide +(checkedItem * 16) - 16) into hMenuLoc
  114. put LeftWind + leftSide + 1 into vMenuLoc
  115.  
  116. get PopUpMenu(field "menuList" of card "Map", ¬¨
  117. checkedItem, hMenuLoc, vMenuLoc)
  118.  
  119. if it = 1 then
  120. push card
  121. go card "Map"
  122. end if
  123. if it = 2 then
  124. push card
  125. go card "howToUse"
  126. end if
  127. if it = 4 then go card "content1"
  128. if it = 5 then go card "content2"
  129. if it = 6 then go card "content3"
  130. if it = 7 then go card "content4"
  131. if it = 8 then go card "content5"
  132. if it = 9 then go card "content6"
  133. if it = 10 then go card "content7"
  134. if it = 11 then go card "content8"
  135. if it = 13 then
  136. push card
  137. go card "content0"
  138. end if
  139. if it = 14 then
  140. push card
  141. go card "index1"
  142. end if
  143. if it = 16 then doMenu "Print Card"
  144.  
  145. end mainMenu
  146. --————————————————————————————————————————————————————————————————————
  147. --  handler resets map to no footprints  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  148.  
  149. on resetMap
  150. global mapCleaning
  151.  
  152. put "true" into mapCleaning
  153. lock screen
  154. push card
  155. go card "Map"
  156. put "" into fld "footprints"
  157. repeat with x = 1 to 12
  158. set the style of bkgnd button x to opaque
  159. end repeat
  160.  
  161. pop card
  162. put "false" into mapCleaning
  163. unlock screen
  164.  
  165. end resetMap
  166. --————————————————————————————————————————————————————————————————————
  167. --  timing for all animation events  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  168.  
  169. on runningPause
  170.  
  171. repeat 250
  172. if the mouse is down then
  173. click at the clickloc
  174. exit to HyperCard
  175. end if
  176. end repeat
  177.  
  178. end runningPause
  179. --————————————————————————————————————————————————————————————————————
  180. --  End Stack Script  ‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî
  181. --————————————————————————————————————————————————————————————————————
  182. </script>
  183.     <background id="3987" file="background_3987.xml" name="openBack" />
  184.     <background id="23174" file="background_23174.xml" name="mainBack" />
  185.     <background id="23808" file="background_23808.xml" name="helpBack" />
  186.     <background id="24880" file="background_24880.xml" name="descBack" />
  187.     <background id="28558" file="background_28558.xml" name="targetBack" />
  188.     <background id="33307" file="background_33307.xml" name="benefitBack" />
  189.     <background id="38590" file="background_38590.xml" na